package com.atom.module.author.pojo.entity;

import com.atom.module.common.base.AbstractEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

@Getter
@Setter
@Builder
public class Author extends AbstractEntity implements Serializable {

    // 账户
    private String account;

    // 密码
    private String password;

    // 姓名
    private String username;

    // 性别
    private String sex;


    @Override
    public String toString() {
        return "Author{" + "account='" + account + '\'' + ", password='" + password + '\'' + ", username='" + username + '\'' + ", sex='" + sex + '\'' + "} " + super.toString();
    }

}
